package com.jly.Util;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 返回数据的bean
 * 
 * @author jiangjie
 *
 */

public class ResponseData implements Serializable {
	private static final long serialVersionUID = 1L;

	private Integer code;

	private String msg;
	
	private String maxPage;//最大条数

	private List<Object> data;

	public ResponseData() {
		super();
		this.data = new ArrayList<>();
	}

	@Override
	public String toString() {
		return "ResponseData [code=" + code + ", msg=" + msg + ", maxPage=" + maxPage + ", data=" + data + "]";
	}

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public List<Object> getData() {
		return data;
	}

	public void setData(List<Object> data) {
		this.data = data;
	}

	public void addData(Object o) {
		data.add(o);
	}

	public String getMaxPage() {
		return maxPage;
	}

	public void setMaxPage(String maxPage) {
		this.maxPage = maxPage;
	}
	
	
}
